package entity;

import java.io.Serializable;
import java.util.List;

public class WeChatUser implements Serializable {
    private String openid;
    private String nickname;
    private Integer sex;
    private String language;
    private String province;
    private String city;
    private String country;
    private String headimgurl;
    private String unionid;
    private List<String> privilege;


    public WeChatUser() {
    }

    public WeChatUser(String openid, String nickname, Integer sex, String language, String province, String city, String country, String headimgurl, String unionid, List<String> privilege) {
        this.openid = openid;
        this.nickname = nickname;
        this.sex = sex;
        this.language = language;
        this.province = province;
        this.city = city;
        this.country = country;
        this.headimgurl = headimgurl;
        this.unionid = unionid;
        this.privilege = privilege;
    }

    /**
     * 获取
     * @return openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置
     * @param openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 获取
     * @return sex
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return language
     */
    public String getLanguage() {
        return language;
    }

    /**
     * 设置
     * @param language
     */
    public void setLanguage(String language) {
        this.language = language;
    }

    /**
     * 获取
     * @return province
     */
    public String getProvince() {
        return province;
    }

    /**
     * 设置
     * @param province
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * 获取
     * @return city
     */
    public String getCity() {
        return city;
    }

    /**
     * 设置
     * @param city
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 获取
     * @return country
     */
    public String getCountry() {
        return country;
    }

    /**
     * 设置
     * @param country
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * 获取
     * @return headimgurl
     */
    public String getHeadimgurl() {
        return headimgurl;
    }

    /**
     * 设置
     * @param headimgurl
     */
    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    /**
     * 获取
     * @return unionid
     */
    public String getUnionid() {
        return unionid;
    }

    /**
     * 设置
     * @param unionid
     */
    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    /**
     * 获取
     * @return privilege
     */
    public List<String> getPrivilege() {
        return privilege;
    }

    /**
     * 设置
     * @param privilege
     */
    public void setPrivilege(List<String> privilege) {
        this.privilege = privilege;
    }

    public String toString() {
        return "WeChatUser{openid = " + openid + ", nickname = " + nickname + ", sex = " + sex + ", language = " + language + ", province = " + province + ", city = " + city + ", country = " + country + ", headimgurl = " + headimgurl + ", unionid = " + unionid + ", privilege = " + privilege + "}";
    }
}
